Skip to content

Conversation

@forsyth2
Copy link
Collaborator

@forsyth2 forsyth2 commented Oct 17, 2025

Summary

This PR better structures existing tests, so it is clearer how to run each of them. It is not significantly changing what we're testing.

Objectives:

  • Restructure testing directories to be clearer to follow.
  • Add test assertions to test files without them (i.e., make it so output doesn't have to be manually reviewed).
  • Make it so the tests files don't have to be modified to run (e.g., by changing try_# paths)
  • Convert some tests to pytest (The tests in tests/integration/python_tests will require more effort to convert over).
  • Change conda setup accordingly to get tests working.

Issue resolution:

Select one: This pull request is...

  • a bug fix: increment the patch version
  • a small improvement: increment the minor version
  • a new feature: increment the minor version
  • an incompatible (non-backwards compatible) API change: increment the major version

Small Change

  • To merge, I will use "Squash and merge". That is, this change should be a single commit.
  • Logic: I have visually inspected the entire pull request myself.
  • Pre-commit checks: All the pre-commits checks have passed.

@forsyth2 forsyth2 self-assigned this Oct 17, 2025
@forsyth2 forsyth2 added Testing Files in `tests` modified priority: high High priority task labels Oct 17, 2025
Copy link
Collaborator Author

@forsyth2 forsyth2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is almost exclusively test changes. Since we are in the E3SM Unified testing period, and iteratively updating tests accordingly, I'm just going to go ahead and merge this.

The only non-testing attribute changed is that the permissible versions of globus-sdk needed an upper bound to pass tests. As such, I will make a zstash rc3 after merging this PR.

- sqlite
- six >=1.16.0
- globus-sdk >=3.15.0
- globus-sdk >=3.15.0,<4.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this, we get AttributeError: 'TransferClient' object has no attribute 'endpoint_autoactivate'

# for new auth credentials in case they have expired:
if [[ $# -gt 1 ]]; then
if [[ $2 == "NEW_CREDS" ]]: then
rm -f ~/.globus-native-apps.cfg
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is no longer used, as of #380.

@forsyth2 forsyth2 marked this pull request as ready for review October 18, 2025 00:00
@forsyth2 forsyth2 changed the title Issue 385 improve tests Improve tests Oct 18, 2025
@forsyth2 forsyth2 merged commit f6149e6 into main Oct 18, 2025
5 checks passed
@forsyth2 forsyth2 deleted the issue-385-improve-tests branch October 18, 2025 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: high High priority task Testing Files in `tests` modified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Improve zstash testing

2 participants